package com.gxa.modules.app.hospital.navigation.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.app.hospital.navigation.dto.ParkGuidanceDto;
import com.gxa.modules.app.hospital.navigation.mapper.AppGuideMapper;
import com.gxa.modules.app.hospital.navigation.service.AppGuideService;
import com.gxa.modules.model.entity.hospital.Guide;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 医院指南 服务实现类
 * </p>
 *
 * @author yjl
 * @since 2022-11-12 10:51:34
 */
@Service
public class AppGuideServiceImpl extends ServiceImpl<AppGuideMapper, Guide> implements AppGuideService {

    @Autowired
    private AppGuideMapper guideMapper;

    @Override
    public List<ParkGuidanceDto> queryAll() {
        List<ParkGuidanceDto> guides = this.guideMapper.query();
        return guides;
    }

    @Override
    public Guide queryById(Integer id) {
        Guide guide = this.guideMapper.queryById(id);
        return guide;
    }
}
